﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using HigLabo.Net;

namespace HigLabo.WindowsAzure.RestService.ServiceManagement
{
    public class ListCertificatesCommand : ManagementServiceCommand<ListCertificatesResult>
    {
        /// <summary>
        /// 対象サービス名
        /// </summary>
        public String ServiceName { get; private set; }

        public ListCertificatesCommand(String serviceName)
        {
            if (String.IsNullOrEmpty(serviceName))
            {
                throw new ArgumentException("serviceNameに、nullもしくは空白は許可されません。", "serviceName");
            }
            this.ServiceName = serviceName;
        }

        public override string GetRequestUri()
        {
            return String.Format("services/hostedservices/{0}/certificates", this.ServiceName);
        }

        public override HttpMethodName MethodName
        {
            get { return HttpMethodName.Get; }
        }

        public override Dictionary<String, String> GetRequestHeaders()
        {
            return null;
        }

        public override System.IO.Stream GetRequestBodyStream()
        {
            return null;
        }

    }
}
